SITAR: GUI Test Script Repair

نویسندگان

  • Zebao Gao
  • Zhenyu Chen
  • Yunxiao Zou
  • Atif M. Memon
چکیده

System testing of a GUI-based application requires that test cases, consisting of sequences of user actions/events, be executed and the software’s output be verified. To enable automated re-testing, such test cases are increasingly being coded as low-level test scripts, to be replayed automatically using test harnesses. Whenever the GUI changes—widgets get moved around, windows get merged—some scripts become unusable because they no longer encode valid input sequences. Moreover, because the software’s output may have changed, their test oracles—assertions and checkpoints—encoded in the scripts may no longer correctly check the intended GUI objects. We present ScrIpT repAireR (SITAR), a technique to automatically repair unusable low-level test scripts. SITAR uses reverse engineering techniques to create an abstract test for each script, maps it to an annotated event-flow graph (EFG), uses repairing transformations and human input to repair the test, and synthesizes a new “repaired” test script. During this process, SITAR also repairs the reference to the GUI objects used in the checkpoints yielding a final test script that can be executed automatically to validate the revised software. SITAR amortizes the cost of human intervention across multiple scripts by accumulating the human knowledge as annotations on the EFG. An experiment using QTP test scripts suggests that SITAR is effective in that 41–89% unusable test scripts were repaired. Annotations significantly reduced human cost after 20% test scripts had been repaired.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Automated GUI Refactoring and Test Script Repair (Position Paper)

To improve the overall user experience, graphical user interfaces (GUIs) of successful software systems evolve continuously. While the evolution is beneficial for end users, it creates several problems for developers and testers. Developers need to manually change the GUI code. Testers need to manually inspect and repair highly fragile test scripts. This is time-consuming and error-prone. The s...

متن کامل

GUI Testing Using Computer Vision Citation

Testing a GUI’s visual behavior typically requires human testers to interact with the GUI and to observe whether the expected results of interaction are presented. This paper presents a new approach to GUI testing using computer vision for testers to automate their tasks. Testers can write a visual test script that uses images to specify which GUI components to interact with and what visual fee...

متن کامل

A Model for GUI Automated Testing Framework in Software System

A pervasive method for GUI testing is the Capture and Playback (CP) technique. This commonly used technique cannot be used until an Application Under Test (AUT) is completely developed. In this paper we propose a specification driven approach to test GUI-Based java programs as an alternative to the CP technique. We introduce a GUI-event test specification language based on Java Script from whic...

متن کامل

Regression testing of gui event interactions pdf

Production 20, 4, regression testing of GUIs has remained a largely unexplored. All possible interactions among the events in a component, just like a control.Regression Testing of GUI Event Interactions. In this paper White describes how automated regression tests can be generated to test both.regression testing, some test reading a pdf cases from the original GUI are usable and others are. Th...

متن کامل

Modeling SITAR System Security

Recent strategies to protect system security lay emphasis on designing intrusion-tolerant systems that are able to tolerate intrusions using techniques such as redundancy, diversity, reconfiguration and graceful degradation. These systems are expected to not only detect and tolerate attacks, but also repair, or rejuvenate themselves so as to remove any damage caused by an intrusion. Several res...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • IEEE Trans. Software Eng.

دوره 42  شماره 

صفحات  -

تاریخ انتشار 2016